package com.practice.car.cardataapp.schelduer.spark.entityForSpark;

import lombok.Data;
import scala.Serializable;
@Data
public class CarMessage implements Serializable {
    private String name;
    private String brand;
    private String type;
    private Double price;
    private String date;
    private Integer sale;
    private String national;

    public CarMessage() {
        this.name = "";
        this.brand = "";;
        this.type = "";;
        this.price = 0.0;
        this.date = "";
        this.sale = 0;
        this.national = "";
    }

    @Override
    public String toString() {
        return "CarMessage{" +
                "name='" + name + '\'' +
                ", brand='" + brand + '\'' +
                ", type='" + type + '\'' +
                ", price=" + price +
                ", date='" + date + '\'' +
                ", sale=" + sale +
                ", national='" + national + '\'' +
                '}';
    }

}
